package com.rockcent.mall.lib.repository;

import com.rockcent.common.domain.enumclass.Whether;
import com.rockcent.mall.lib.domain.Category;
import com.rockcent.mall.lib.dto.CategoryDto;
import com.rockcent.mall.lib.dto.MallCategoryDto;

import java.util.List;

/**
 * Created by zhangjh on 2016/10/19.
 */
public interface CategoryRepositoryCustom {
    /**
     * 查询商家所有商品类目
     */
     List<Category> getCategoryList(Long mallId ,Long merchantId);

    /**
     * 查询商城下的类目
     */
     List<Category> findMallCategories(Long mallId);

    List<Category> findThreeLevel(Long mall , Long categoryId);


    List<CategoryDto> getCategoryByMallIdAndIsDeleteAndParentId(Long id, Whether isdelete, Long leave, Long parentId);

    List<MallCategoryDto> findTwoLevel(Long mallId, Long categoryId);

     List<MallCategoryDto> findVisiableTwoLevel(Long mallId, Long parentId);

     List<MallCategoryDto> findVisiableThreeLevel(Long mallId, Long parentId);
}
